package cn.darkhorse.device.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author yuanjun
 * @since 2023-10-11
 */
@Getter
@Setter
  @TableName("iot_gateway")
@ApiModel(value = "IotGateway对象", description = "")
public class IotGateway implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("mes设备id")
      private Long deviceId;
      @ApiModelProperty("设备类型0：设备1：电表2：三方")
      private Integer deviceType;

      @ApiModelProperty("设备硬件对应id")
      private String gatewayDeviceId;

      @ApiModelProperty("网关类型：0101 星原网关 0201 智嵌物联（前2位为网关类型，后2位为数据类型）")
      private String gatewayType;

      @ApiModelProperty("说明")
      private String description;

      @ApiModelProperty("是否建表")
      private Boolean isCreateTable;

      @ApiModelProperty("设备历史表名")
      private String historyTableName;

}
